package com.blog.utility;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class CommonApplicationContextUtil implements ApplicationContextAware {

	private static ApplicationContext context;//澹版槑涓�釜闈欐�鍙橀噺淇濆瓨 
	
	@SuppressWarnings("static-access")
	public void setApplicationContext(ApplicationContext contex)
			throws BeansException {
		this.context=contex; 
	}
	public static ApplicationContext getContext(){ 
	  return context; 
	} 
}
